<template>
  <div id="app">
    <header>
      <h1>Client Application</h1>
    </header>
    <main>
      <m-button @click="handleClick">Click me!</m-button>
      <p>{{ message }}</p>
      
      <!-- 添加天气卡片组件 -->
      <m-weather-card 
        city="北京"
        temperature="22"
        condition="晴朗"
        humidity="65"
        wind-speed="12"
      />
    </main>
  </div>
</template>

<script>
import { formatDate } from '@monorepo-vue/utils'

export default {
  name: 'App',
  data() {
    return {
      message: 'Hello from the client app! Today is ' + formatDate(new Date())
    }
  },
  methods: {
    handleClick() {
      alert('Button clicked!')
    }
  }
}
</script>

<style>
#app {
  font-family: Avenir, Helvetica, Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-align: center;
  color: #2c3e50;
  margin-top: 60px;
}
</style>